<%@ page import="com.ws.utils.Res" %><%--
  Created by IntelliJ IDEA.
  User: lufei
  Date: 2025/3/20
  Time: 11:20
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" isELIgnored="false" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>顽石旅游网-搜索</title>
    <link rel="stylesheet" type="text/css" href="${ pageContext.request.contextPath}/home/css/common.css">
    <link rel="stylesheet" href="${ pageContext.request.contextPath}/home/css/search.css">
    <script src="${ pageContext.request.contextPath}/home/js/jquery-3.3.1.js"></script>
  	<style type="text/css">
  		.topbar{position:relative}
    	.hottel{position:absolute;top:12px;right:50px}
    	.hottel p{cursor:pointer;font-weight:700;float:left;width:100px;border:1px solid orange;text-align:center;height:45px;line-height:45px;margin-right:10px}
    	.hottel a{color:#666;text-decoration:none}
  	</style>
</head>
<body>
<!--引入头部-->
    <header id="header">
            
        <div class="header_wrap">
            <div class="topbar">
                <div class="logo">
                    <a href="/"><img src="${ pageContext.request.contextPath}/home/images/logo.png" style="height: 60px;" alt=""></a>
                </div>
                <div class="search">
                    <form action="${pageContext.request.contextPath}/qianTai/tosSuoSuo" method="get">
                        <input name="route_name" value="${routeVo.route_name}" type="text" placeholder="请输入路线标题" class="search_input" autocomplete="off">
                        <input type="submit" value="搜索" class="search-button">
                    </form>
                </div>
                <c:if test="${user==null}">
                    <div class="hottel">
                        <a href="${ pageContext.request.contextPath}/qianTaiLogin.jsp"><p>登录</p></a>
                        <a href="${ pageContext.request.contextPath}/qianTaiZhuCe.jsp"><p>注册</p></a>
                    </div>
                </c:if>
                <c:if test="${user!=null}">
                    <div class="haslogin">
                        <p>
                            欢迎：${user.user_name}
                            <img src="<%=Res.fileUrl%>${user.user_tx}" width="50px" height="50px" style="border-radius:50%">
                            <a href="${ pageContext.request.contextPath}/qianTai/tuichu" >退出登录</a>
                        </p>
                    </div>
                </c:if>
            </div>
        </div>
    </header>
    <div class="page_one">
        <div class="contant">
            <div class="crumbs">
                <img src="images/search.png" alt="">
                <p>顽石旅行><span>搜索结果</span></p>
            </div>
            <div class="xinxi clearfix">
                <div class="left">
                    <div class="header">
                        <span>商品信息</span>
                        <span class="jg">价格</span>
                    </div>
                    <ul>
                        <c:forEach items="${list}" var="route">
                            <li>
                                <div class="img"><img src="<%=Res.fileUrl%>${route.route_image}" style="width: 300px; height: 200px" alt=""></div>
                                <div class="text1">
                                    <p>${route.route_name}</p>
                                    <br/>
                                    <p>${route.route_start_date}月出发，网付立享￥${route.route_price}起！爆款位置有限，抢完即止！</p>
                                </div>
                                <div class="price">
                                    <p class="price_num">
                                        <span>&yen;</span>
                                        <span>${route.route_price}</span>
                                        <span>起</span>
                                    </p>
                                    <p><a href="${ pageContext.request.contextPath}/qianTai/toxiangqing?route_id=${route.route_id}">查看详情</a></p>
                                </div>
                            </li>
                        </c:forEach>

                    </ul>
                </div>
            </div>
        </div>
    </div>

    <!--引入头部-->
    <!-- 尾部 start-->
    <footer id="footer">
        
        <div class="company">
            <p>顽石教育有限公司 版权所有Copyright 2019-2020, All Rights Reserved 京ICP备12390</p>
        </div>
    </footer>
    <!--导入布局js，共享header和footer-->
    <script type="text/javascript" src="${ pageContext.request.contextPath}/home/js/include.js"></script>
</body>

</html>